package org.example.listener;

import org.springframework.aop.AfterReturningAdvice;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 *
 * @author youshang
 * @date 2021/02/20 19:17
 **/
@Component
public class A implements AfterReturningAdvice {


    @Override
    public void afterReturning(Object returnValue, Method method, Object[] args, Object target) throws Throwable {
        System.out.println("方法后执行了！！！！");
    }
}
